﻿#ifndef CORE_H
#define CORE_H

#include "GlobalVariate.h"
#include "Map.h"
#include "Player.h"

class SelectWidget;
class Core
{
public:
    SelectWidget *sel = nullptr;
    Map* theMap;    //地图信息
    Core(){}
    Core(Map* theMap, Player* player[], int** memorymap,MouseEvent *mouseEvent);
    void gameUpdate();
    void updateByObject();
    void resetNowObject_Click(bool isStop = false);
    void requestSound_Click( Coordinate* object );
private:
    Player** player;    //player信息
    int** memorymap;    //记录出现在当前画面上的object,用于g_Object[]中访问
    MouseEvent *mouseEvent; //记录当前鼠标事件
    /************管理添加表************/
    void manageMouseEvent();    //鼠标添加

};

#endif // CORE_H
